#ifndef _SCORE_H_
#define _SCORE_H_
#include <d3dx9.h>
#include "Sprite.h"
#include "CGame.h"
#include "Object.h"
#include "Global.h"
#include "Texture.h"

#define SCORE_GRAVITY	0.01
class Score : public Object
{
public: 
	float _xPre;
	float _yPre;

public:
	int _score;
	Texture * _texture;
	Score(float x, float y);
	~Score(void);
	void Render(int vpX, int vpY);
	void Update(list<Object *> *_list, float time);
	OBJECT_TYPE getObjectType();
	void Update(int score);
	void DrawNumber(Sprite* sprite,int number,int x,int y, int cameraX, int cameraY);

	void changeState(int state);
};

#endif